#include "hiuac.h"

static hiuac *g = 0;

static int __init(void)
{
    return 0;
}

static int __open(void)
{
    return 0;
}

static int __close(void)
{
    g->inner.uac_started = 0;
    return 0;
}

static int __run(void)
{
    g->inner.uac_started = 1;
    return 0;
}

hiuac *get_hiuac(hiuac *hd)
{
    hd->init = __init;
    hd->open = __open;
    hd->close = __close;
    hd->run = __run;

    g = hd;

    return hd;
}

int main(void)
{
    hiuac uac;
    get_hiuac(&uac);

    uac.init();
    uac.open();
    uac.run();
    uac.close();

    return 0;
}
